﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using KPIS.GERP.GHRMS.DAL;
using KPIS.GERP.GHRMS.MODEL;
using KPIS.GERP.GHRMS.IBLL;

namespace KPIS.GERP.GHRMS.BLL
{
    public sealed class JobsiteCommandDtlsBLL : IJobsiteCommandDtlsBLL
    {
        JobsiteCommandDtlsDAL dal = new JobsiteCommandDtlsDAL();

        public DataSet LoadJobSiteCommandDtls(Nullable<int> Sequence, Nullable<int> JobSiteCommand)
        {
            return dal.LoadJobSiteCommandDtls(Sequence, JobSiteCommand);
        }        

        public void Insert(JobSiteCommandDtlsInfo Info)
        {
            try
            {
                dal.Insert(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Update(JobSiteCommandDtlsInfo Info)
        {
            try
            {
                dal.Update(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
        public void Delete(JobSiteCommandDtlsInfo Info)
        {
            try
            {
                dal.Delete(Info);
            }
            catch
            {
                throw new Exception("");
            }
        }
    }
}
